package com.borko.healthcare.tapestry.pages;

import java.util.List;

import org.apache.tapestry5.annotations.Property;

import com.borko.healthcare.entities.interfaces.MedicineOrder;
import com.borko.healthcare.entities.interfaces.Order;

public class OrderReview {
	
	private Order order;
	
	@SuppressWarnings("unused")
	@Property
	private MedicineOrder medicineOrder;
	
	public List<MedicineOrder> getMedicineOrders() {
		return order.getMedicineOrders();
	}

	public Order getOrder() {
		return order;
	}

	public void setOrder(Order order) {
		this.order = order;
	}
	
	public void onActivate(Order order) {
		this.order = order;
	}
	
	public Order onPassivate() {
		return this.order;
	}
}
